home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / datafiles / gfx_formats / gif / ps2eps.txt < prev    next >
Text File  |  1995-02-13  |  7KB  |  158 lines

  1. PAGEMAKER TECHNICAL NOTE - POSTSCRIPT FILES
  2. Updated:  9-3-87    MAC/PC
  3.  
  4.     "Converting a PostScript File to EPS Format"
  5.  
  6.  
  7.     PostScript files must be converted to Encapsulated PostScript 
  8. (EPS) format before they can be placed in PageMaker.  The EPS 
  9. format enhances a PostScript file so it can be used by PageMaker.  
  10. Many graphics applications save in EPS format.  If your 
  11. application does not save in EPS format, contact the application 
  12. vendor to make sure you have the most recent version.
  13.  
  14.     To convert a PostScript file to EPS format, you must edit the 
  15. file using a text editor or word processor to define the file as 
  16. an EPS-format file.  When you place the EPS-formatted file into 
  17. PageMaker, you'll see a gray box on the page instead of the image.  
  18. However, when you print the publication, the image is printed on 
  19. the page.
  20.  
  21.     The gray box, or "bounding box," shows how much space the 
  22. PostScript image occupies when printed.  You specify the 
  23. dimensions of the bounding box when you convert the PostScript 
  24. file to EPS format.  You can crop, stretch, and compress the 
  25. bounding box after placing it in PageMaker as you would any other 
  26. placed image.  However, you won't be able to see the results of 
  27. your work until you print the page.
  28.  
  29.     If the image does not print satisfactorily, you may need to 
  30. change the bounding box dimensions.  You can change the dimensions 
  31. as many times as necessary by editing the converted PostScript 
  32. file.  If changing the bounding box dimensions still does not 
  33. produce the results you want, the PostScript file may need further 
  34. editing.  This requires an understanding of the PostScript Page 
  35. Description Language (PDL).  If you are interested in learning how 
  36. to further edit your PostScript files, you may read books and 
  37. articles about programming in PostScript.  These books are 
  38. available at most bookstores:
  39.  
  40.     Understanding PostScript Programming  by David A. Holzgang
  41.     PostScript Language Tutorial and Cookbook by Adobe Systems 
  42.         Incorporated, Addison Wesley Publishing
  43.     PostScript Language Reference Manual by Adobe Systems 
  44.         Incorporated, Addison Wesley Publishing
  45.  
  46.  
  47. To convert a PostScript file to EPS format:
  48.  
  49. 1.    Using any downloader, print the PostScript file by 
  50. downloading it to a LaserWriter.
  51.  
  52.     Note:  If the PostScript image does not print when you 
  53. download it, it may not print once you have converted it to EPS 
  54. format and placed it in PageMaker.
  55.  
  56.  
  57. 2.    Create a "bounding box" by lightly drawing a box around the 
  58. image that includes the entire image while minimizing white space.
  59.  
  60.     This ensures that the image will be placed without any, or at 
  61. least a minimum of, white space - depending on how exact your 
  62. bounding box measurements are.  You can always change the bounding 
  63. box dimensions and place the image again.  You may want to leave a 
  64. small amount of white space around the image as a precautionary 
  65. measure against minor printing problems, such as paper stretching 
  66. and paper skewing.
  67.  
  68.  
  69. 3.    Measure the distance from the lower left corner of the image 
  70. to the left edge of the paper.  
  71.  
  72.     Write the measurement in points.  If your ruler does not show 
  73. points, calculate the total number of points:  1 inch = 72 points, 
  74. and 1 pica = 12 points.  Designate this measurement as 
  75. "measurement a."
  76.  
  77.  
  78. 4.    Measure the distance from the lower left corner of the image 
  79. to the bottom edge of the paper.
  80.  
  81.     Designate this measurement in points as "measurement b."
  82.  
  83.  
  84. 5.    Measure the distance from the upper right corner of the image 
  85. to the left edge of the paper.
  86.  
  87.     Designate this measurement in points as "measurement c."
  88.  
  89.  
  90. 6.    Measure the distance from the distance from the upper right 
  91. corner of the image to the bottom edge of the paper.
  92.  
  93.     Designate this measurement in points as "measurement d."
  94.  
  95.  
  96. 7.    Using any text editor (for example, Word or QUED), open the 
  97. PostScript file.
  98.  
  99.     You'll see several lines of text.  These lines are the 
  100. PostScript description of the image.  The lines at the top of the 
  101. file are the header.  
  102.  
  103.  
  104. 8.    Add these lines to, or modify existing lines in, the header 
  105. (the first group of lines in any PostScript file):
  106.  
  107.     %!Adobe-2.0 EPSF
  108.     %%Creator: name
  109.     %%CreationDate: date
  110.     %%Title: filename
  111.     %%BoundingBox: a b c d
  112.  
  113.  
  114.     Note:  Make sure that the first line in the file is "%!Adobe-
  115. 2.0 EPSF."  Also, do not separate the header lines with a blank 
  116. line space.  The first blank line that PostScript encounters tells 
  117. it that the the next line begins the body of the program.
  118.  
  119.     For "name," type your name or initials.  For "date," type 
  120. today's date using any format (for example, MM-DD-YY, MM/DD/YY, 
  121. July 5, 1987, and so on).  For "filename," type the name of the 
  122. PostScript file.  After "BoundingBox: ," type the measurements you 
  123. took in steps 3, 4, 5, and 6, separating each with a space:  "a" 
  124. is the measurement from Step 3, "b" is the measurement from Step 
  125. 4, "c" is the measurement from Step 5, and "d" is the measurement 
  126. from Step 6.  
  127.  
  128.  
  129. 9.    Save the file in text-only format.
  130.  
  131.     When you place the converted PostScript file in PageMaker,
  132. you'll see a gray box on the page instead of the image.  However, 
  133. when you print the page, you'll see the image.  The gray box shows 
  134. the Title, Creator, and CreationDate you typed in the header.  The 
  135. dimensions of the box reflect the measurements you typed for the 
  136. BoundingBox.
  137.  
  138.     You can crop, stretch, or compress the gray box as you would 
  139. any other graphic placed in PageMaker.  However, you won't be able 
  140. to see the results of the changes until you print the page.
  141. Note:  If after completing this procedure, you still are not able 
  142. to place the EPS-format file, the PostScript code may contain 
  143. "dangerous operators" that prevent PageMaker from placing  the 
  144. file.  To see if the EPS-formatted file has any dangerous 
  145. operators, open the file using any word processor and search for 
  146. these operators:  
  147.  
  148. grestoreall      initgraphics      initmatrix
  149. initclip         erasepage         banddevice
  150. framedevice      nulldevice        renderbands
  151. setpageparams    note              exitserver
  152.  
  153.  
  154.     If the file contains any of these operators, contact the 
  155. graphics application vendor for assistance.  If the file contains 
  156. the operator, "exitserver," you will not be able to place the file 
  157. in PageMaker.